#ifndef TLIB_H
#define TLIB_H

#include <Windows.h>

#define TLIB_SLEEPTIMER		32000

extern DWORD TWinVersion;

#define WINEXEC_ERR_MAX		31
#define TLIB_SLEEPTIMER		32000

#define TLIB_CRYPT		0x00000001
#define TLIB_PROTECT	0x00000002
#define TLIB_WIN32V		0x00000004

static bool IsNewShell() { return LOBYTE(LOWORD(TWinVersion)) >= 4; }
static bool IsWin31() { return ( LOBYTE(LOWORD(TWinVersion)) == 3 ) && ( HIBYTE(LOWORD(TWinVersion)) < 20 ); }
static bool IsWin95() { return ( LOBYTE(LOWORD(TWinVersion)) >= 4 ) && ( TWinVersion >= 0x80000000 ); }
static bool IsWinNT350() { return (LOBYTE(LOWORD(TWinVersion)) == 3) && ( TWinVersion < 0x80000000 ) && ( HIBYTE(LOWORD(TWinVersion)) == 50); }
static bool IsWinNT() { return ( LOBYTE(LOWORD(TWinVersion)) >= 4 ) && ( TWinVersion < 0x80000000 ); }
static bool IsWin2K() { return ( LOBYTE(LOWORD(TWinVersion)) >= 5 ) && ( TWinVersion < 0x80000000 ); }
static bool IsWinXP() { return ( LOBYTE(LOWORD(TWinVersion)) >= 6 || LOBYTE(LOWORD(TWinVersion)) == 5 && HIBYTE(LOWORD(TWinVersion)) >= 10 ) 
&& ( TWinVersion < 0x80000000 ); }
static bool IsWinVista() { return ( LOBYTE(LOWORD(TWinVersion)) >= 6 ) && ( TWinVersion < 0x80000000 ); }

#define MAX_WPATH		32000
#define MAX_PATH_EX		(MAX_PATH * 8)
#define MAX_FNAME_LEN	255

#define BITS_OF_BYTE	8
#define BYTE_NUM		256

#include "tapi32v.h"
#include "tapi32ex.h"
#include "tapi32u8.h"
#include "tlist.h"
#include "tmisc.h"
#include "tregist.h"
#include "tini.h"




#endif	// TLIB_H
